﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InfoPick.Lib.Tools;

namespace InfoPick.Lib.Entity
{
    public class CLKSRC
    {
        //框号
        public int? Frame { get; set; }

        //槽位号
        public int? SLotNum { get; set; }

        //端口
        public int? Port { get; set; }

        public static CLKSRC Create(string[] row)
        {
            try
            {
                CLKSRC obj = new CLKSRC();
                obj.Frame = int.Parse(row[3]);
                obj.SLotNum = int.Parse(row[4]);
                obj.Port = int.Parse(row[5]);
                return obj;
            }
            catch (Exception e)
            {
                return null;
            }
        }
    }
}
